package com.jf.exam;

import com.jf.exam.pojo.data.ExaminationResultDO;

import java.util.ArrayList;
import java.util.Collections;

public class T2 {

    public static void main(String[] args) {

        ArrayList arrayList = new ArrayList();

        ExaminationResultDO s1 = new ExaminationResultDO();
        s1.setId(1);
        s1.setPoint(88);
        arrayList.add(s1);

        ExaminationResultDO s2 = new ExaminationResultDO();
        s2.setId(2);
        s2.setPoint(99);
        arrayList.add(s2);

        ExaminationResultDO s3 = new ExaminationResultDO();
        s3.setId(6);
        s3.setPoint(100);
        arrayList.add(s3);

        Collections.sort(arrayList);
        System.out.println(arrayList);

    }

}
